class BleBean {
  int _rssi;
  String _address;
  String _name;

  int get rssi => _rssi;

  set rssi(int value) {
    _rssi = value;
  }

  String get address => _address;

  String get name => _name;

  set name(String value) {
    _name = value;
  }

  set address(String value) {
    _address = value;
  }

  BleBean.fromJson(Map<String, dynamic> json){
    _name = json[ 'name'];
    _address = json[ 'address'];
    _rssi = json[ 'rssi'];
  }

  @override
  bool operator ==(Object other) =>
      identical(this, other) ||
      other is BleBean &&
          runtimeType == other.runtimeType &&
          _rssi == other._rssi &&
          _address == other._address &&
          _name == other._name;

  @override
  int get hashCode => _rssi.hashCode ^ _address.hashCode ^ _name.hashCode;
}


